package com.jiezuo.auth.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jiezuo.auth.entity.Depart;
import com.jiezuo.common.vo.PageVo;

import java.util.List;
import java.util.Map;

/**
* @description   部门信息
* @author        王帅
* @date          2020/08/04 16:56
* @version       V1.0
**/
public interface DepartService extends IService<Depart> {

    IPage<Depart> findPage(PageVo pageVo, Depart depart);

    List<Depart>  findList(Depart depart);

    void saveDepart(Depart depart);

    List<Map<String, String>> findUserDepart();

    List<Depart> findDepartsByUserId(String user_id);

    List<Depart> getDepartTree(Depart depart);

    List<Depart> getDetectiveDepart();

    List<Depart> findGather();

    int updateDepart(Depart depart);
}
